package setting

import (
	"server/application/db/schema/sentity"
)

const GinPort = "8087"
const WebTitle = "Admin"
const Beian = "Admin"
const Version = "1.0.0"

// UseSwagger 是否使用swagger,正式环境改成false
const UseSwagger = true

// UseSoftDelete 是否使用软删除功能如果true 表必须存在deleted_at字段
const UseSoftDelete = false

// EntityAutoMigrateList 自动迁移的实体列表
var EntityAutoMigrateList = []any{
	//new(entity2.SysUser), new(entity2.SysMenu),
	//new(entity2.SysRole),
	//new(entity2.SysRolePermissions),
	//new(entity2.SysDictionary),
	new(sentity.UserAccount),
	new(sentity.Trip),
	new(sentity.TripItem),
	new(sentity.AccountConfig),
}

// EntityGenerationList 需要自动生成的实体
// 开始公用EntityAutoMigrateList，但是考虑到隔离，还是分开了，可以按需将生成实体写入
var EntityGenerationList = []any{
	//new(entity2.SysUser), new(entity2.SysMenu),
	//new(entity2.SysRole),
	//new(entity2.SysDictionary),
	//new(entity2.SysRolePermissions),
	new(sentity.UserAccount),
	new(sentity.Trip),
	new(sentity.TripItem),
	new(sentity.AccountConfig),
}
